import request from '@/utils/request'

export class ObjectionsService {

// 查询异议列表
  static listObjections(query) {
    return request({
      url: '/api/qa/objections/list',
      method: 'get',
      params: query
    })
  }

// 查询异议详细
  static getObjections(id) {
    return request({
      url: '/api/qa/objections/' + id,
      method: 'get'
    })
  }

// 新增异议
  static addObjections(data) {
    return request({
      url: '/api/qa/objections',
      method: 'post',
      data: data
    })
  }

// 修改异议
  static updateObjections(data) {
    return request({
      url: '/api/qa/objections',
      method: 'put',
      data: data
    })
  }

// 删除异议
  static delObjections(id) {
    return request({
      url: '/api/qa/objections/' + id,
      method: 'delete'
    })
  }

}
